home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / plugin / nsIClassicPluginFactory.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  105 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIClassicPluginFactory.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIClassicPluginFactory_h__
  6. #define __gen_nsIClassicPluginFactory_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. #include "nsplugindefs.h"
  18. // {a55d21ca-1dd1-11b2-9b0f-8fe1adaf129d}
  19. #define NS_CLASSIC_PLUGIN_FACTORY_CID \
  20. { 0xa55d21ca, 0x1dd1, 0x11b2, { 0x9b, 0x0f, 0x8f, 0xe1, 0xad, 0xaf, 0x12, 0x9d } }
  21. // Prefix for ContractID of all plugins
  22. #define NS_CLASSIC_PLUGIN_FACTORY_CONTRACTID "@mozilla.org/plugin/classicpluginfactory;1"
  23. struct PRLibrary;
  24. class nsIServiceManagerObsolete; /* forward declaration */
  25.  
  26. class nsIPlugin; /* forward declaration */
  27.  
  28.  
  29. /* starting interface:    nsIClassicPluginFactory */
  30. #define NS_ICLASSICPLUGINFACTORY_IID_STR "07bfa284-1dd2-11b2-90f8-fef5608e8a56"
  31.  
  32. #define NS_ICLASSICPLUGINFACTORY_IID \
  33.   {0x07bfa284, 0x1dd2, 0x11b2, \
  34.     { 0x90, 0xf8, 0xfe, 0xf5, 0x60, 0x8e, 0x8a, 0x56 }}
  35.  
  36. class NS_NO_VTABLE nsIClassicPluginFactory : public nsISupports {
  37.  public: 
  38.  
  39.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICLASSICPLUGINFACTORY_IID)
  40.  
  41.   /**
  42.   * A factory method for constructing 4.x plugins. 
  43.   * Constructs and initializes an ns4xPlugin object
  44.   */
  45.   /* void createPlugin (in nsIServiceManagerObsolete aServiceMgr, in string aFileName, in string aFullPath, in PRLibraryPtr aLibrary, out nsIPlugin aResult); */
  46.   NS_IMETHOD CreatePlugin(nsIServiceManagerObsolete *aServiceMgr, const char *aFileName, const char *aFullPath, PRLibrary * aLibrary, nsIPlugin **aResult) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSICLASSICPLUGINFACTORY \
  52.   NS_IMETHOD CreatePlugin(nsIServiceManagerObsolete *aServiceMgr, const char *aFileName, const char *aFullPath, PRLibrary * aLibrary, nsIPlugin **aResult); 
  53.  
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  55. #define NS_FORWARD_NSICLASSICPLUGINFACTORY(_to) \
  56.   NS_IMETHOD CreatePlugin(nsIServiceManagerObsolete *aServiceMgr, const char *aFileName, const char *aFullPath, PRLibrary * aLibrary, nsIPlugin **aResult) { return _to CreatePlugin(aServiceMgr, aFileName, aFullPath, aLibrary, aResult); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSICLASSICPLUGINFACTORY(_to) \
  60.   NS_IMETHOD CreatePlugin(nsIServiceManagerObsolete *aServiceMgr, const char *aFileName, const char *aFullPath, PRLibrary * aLibrary, nsIPlugin **aResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreatePlugin(aServiceMgr, aFileName, aFullPath, aLibrary, aResult); } 
  61.  
  62. #if 0
  63. /* Use the code below as a template for the implementation class for this interface. */
  64.  
  65. /* Header file */
  66. class nsClassicPluginFactory : public nsIClassicPluginFactory
  67. {
  68. public:
  69.   NS_DECL_ISUPPORTS
  70.   NS_DECL_NSICLASSICPLUGINFACTORY
  71.  
  72.   nsClassicPluginFactory();
  73.  
  74. private:
  75.   ~nsClassicPluginFactory();
  76.  
  77. protected:
  78.   /* additional members */
  79. };
  80.  
  81. /* Implementation file */
  82. NS_IMPL_ISUPPORTS1(nsClassicPluginFactory, nsIClassicPluginFactory)
  83.  
  84. nsClassicPluginFactory::nsClassicPluginFactory()
  85. {
  86.   /* member initializers and constructor code */
  87. }
  88.  
  89. nsClassicPluginFactory::~nsClassicPluginFactory()
  90. {
  91.   /* destructor code */
  92. }
  93.  
  94. /* void createPlugin (in nsIServiceManagerObsolete aServiceMgr, in string aFileName, in string aFullPath, in PRLibraryPtr aLibrary, out nsIPlugin aResult); */
  95. NS_IMETHODIMP nsClassicPluginFactory::CreatePlugin(nsIServiceManagerObsolete *aServiceMgr, const char *aFileName, const char *aFullPath, PRLibrary * aLibrary, nsIPlugin **aResult)
  96. {
  97.     return NS_ERROR_NOT_IMPLEMENTED;
  98. }
  99.  
  100. /* End of implementation class template. */
  101. #endif
  102.  
  103.  
  104. #endif /* __gen_nsIClassicPluginFactory_h__ */
  105.